<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!-->
<html class="gt-ie8 gt-ie9 not-ie">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<!--提示360等双核浏览器使用WebKit核心-->
<meta name="renderer" content="webkit" />
<meta name="format-detection" content="telephone=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" charset="UTF-8">
<title>lblTitle</title>
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

<script type="text/javascript">
        var IsMobile = false;
        var _PORTALROOT_GLOBAL = window.localStorage.getItem("H3.PortalRoot")?window.localStorage.getItem("H3.PortalRoot"):"/Portal";

        if (typeof (pageInfo) != "undefined") {
            pageInfo.LockImage = "Portal/WFRes/Images/WaitProcess.gif";
        }

        var OnSubmitForm = function () {
            if (IsMobile) {
                //return false;
            }
            return true;
        }
    </script>

<link rel="stylesheet" href="WFRes/editor/themes/default/default.css?20151016" />
<link rel="stylesheet" href="WFRes/editor/plugins/code/prettify.css?20151016" />

<link href="WFRes/assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="WFRes/assets/stylesheets/pixel-admin.min.css" rel="stylesheet" type="text/css" />
<link href="WFRes/assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css" />
<link href="WFRes/_Content/themes/ligerUI/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="WFRes/css/MvcSheet.css" rel="stylesheet" type="text/css" />
<link href="WFRes/css/MvcSheetPrint.css" rel="stylesheet" type="text/css" media="print" />
<link rel="shortcut icon" type="image/x-icon" href="WFRes/images/favicon.ico" media="screen" />

<script type="text/javascript" src="WFRes/_Scripts/jquery/jquery.js?v=1.12.4"></script>
<script src="WFRes/_Scripts/jquery/ajaxfileupload.js?20151016"></script>
<script src="WFRes/_Scripts/jquery/jquery.lang.js"></script>
<script src="WFRes/_Scripts/ligerUI/ligerui.all.min.js" type="text/javascript"></script>
<script src="WFRes/_Scripts/Calendar/WdatePicker.js?20151016"></script>
<script charset="utf-8" src="WFRes/editor/kindeditor-all.js?20151016"></script>
<script charset="utf-8" src="WFRes/editor/lang/zh_CN.js?20151016"></script>
<!--[if lt IE 9]>
	<script src="WFRes/assets/javascripts/ie.min.js?20151016"></script>
	<![endif]-->

<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/SheetControls.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/MvcSheetUI.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetQuery.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetAttachment.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetCheckbox.js?20150722"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetCheckboxList.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetComment.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetDropDownList.js?20160330001"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetGridView.js?20160330002"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetHiddenField.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetHyperLink.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetInstancePrioritySelector.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetLabel.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetOffice.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetRadioButtonList.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetRichTextBox.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetTextBox.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetTime.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetToolbar.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetUser.js?201503300001"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetTimeSpan.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetCountLabel.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetOriginatorUnit.js?20160909"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/Controls/SheetRelationInstance.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MvcSheet/MvcSheet.js?20180224"></script>
<script type="text/javascript" src="WFRes/_Scripts/MVCRuntime/Sheet.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MVCRuntime/Sheet.Computation.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MVCRuntime/Sheet.Display.js?20151016"></script>
<script type="text/javascript" src="WFRes/_Scripts/MVCRuntime/Sheet.Validate.js?20151016"></script>

<div id="titleContent"></div>
<!--表单脚本控制和样式 End-->
<div id="headContent"></div>
</head>
<body class="theme-default main-menu-animated"
	style="background-color: #CCC">
	<!--onsubmit="return false":避免ENTER键回传页面-->
	<form id="form1" name="form1" onsubmit="return OnSubmitForm();" class="form1">
		<!--PC端框架总是加载-->
		<div class="main-container container sheetContent" id="sheetContent" style="display: none">
			<div class="panel">
				<div id="main-navbar"
					class="navbar navbar-inverse toolBar mainnavbar" role="navigation">
					<div class="navbar-inner">
						<div class="navbar-header">
							<button type="button" class="navbar-toggle collapsed"
								data-toggle="collapse" data-target="#main-navbar-collapse">
								<i class="navbar-icon fa fa-bars"></i>
							</button>
						</div>
						<div id="main-navbar-collapse"
							class="collapse navbar-collapse main-navbar-collapse">
							<ul class="nav navbar-nav SheetToolBar" id="divTopBars">
								<div id="cphMenu"></div>
							</ul>
						</div>
					</div>
				</div>
				<div id="content-wrapper"></div>
			</div>
		</div>


		<script>var init = [];</script>
		<script src="WFRes/assets/javascripts/bootstrap.min.js?201412041112"></script>
		<script src="WFRes/assets/javascripts/pixel-admin.min.js?201412041112"></script>
		<script type="text/javascript">
            init.push(function () {
                var w = 12;//$("textarea[data-richtextbox]").length > 0 ? 12 : 0;
                $(window).resize(function () {
                    $("#main-navbar").css("width", $("#main-navbar").parent().width() - w);
                });
                $("#main-navbar").css("width", $("#main-navbar").parent().width() - w);
            })
            window.PixelAdmin.start(init);

            var getUrlVars = function () {
                var vars = {};
                var hash;
                var hashs = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
                for (var i = 0; i < hashs.length; i++) {
                    hash = hashs[i].split('=');
                    vars[hash[0]] = hash[1];
                }
                return vars;
            }

            $(function () {
            	// ;
                $("[id*=sheetContent]").show();
                var divContent = window.localStorage.getItem("divContent");
                //alert("divContent in cookie:"+divContent);
                var postURL = window.localStorage.getItem("postURL");
                //alert("postURL in cookie:"+postURL);
                params = getUrlVars();
                var paramString = JSON.stringify(params);

                $.ajax({
                    type: "POST",
                    async: true,
                    url: _PORTALROOT_GLOBAL + "/WorkItemSheets/WorkItemSheets",
                    data: { paramString: paramString },
                    dataType: "json",
                    success: function (data) {
                    	// ;
                        if (data.Success) {
                            $("#content-wrapper").html(data.DivContent);
                          //执行入口
                            $.MvcSheet.Init();
                        } else {
                            var message;
                            /*if ($.Lang(data.Message) == data.Message) {
                                message = data.Messag
                            } else {
                                message = $.Lang(data.Message);
                            }*/
                            if ($.Lang(data.Message) != null) {
                                message = $.Lang(data.Message);
                            } else {
                                message = data.Messag
                            }
                            $.H3Dialog.Warn({ content: message });
                        }
                    }
                });
            })
        </script>
	</form>
</body>
</html>